Page({
  data: {
    list: [
      { id: 0, image_src: '/assets/icons/team.png', h1: '辅助带玩桌游' },
      { id: 1, image_src: '/assets/icons/child.png', h1: '亲子桌游' },
      { id: 2, image_src: '/assets/icons/course.png', h1: '玩习课' },
      {
        id: 3,
        image_src: '/assets/icons/celebration.png',
        h1: '生日派对/团体聚会',
      },
    ],
  },
  _tolink(e) {
    let { id } = e.currentTarget.dataset
    console.log()
    if (id == 0) {
      wx.navigateTo({
        url: '/pages/reservationList/reservationList',
      })
    } else if (id == 1) {
      wx.navigateTo({
        url: '/pages/parentchild/parentchild',
      })
    } else if (id == 2) {
      // wx.navigateTo({
      //   url: '/pages/course/course',
      // })
      wx.navigateTo({
        url: '/pages/birthdayappointment/birthdayappointment?title=玩习课预约&type=4',
      })
    } else if (id == 3) {
      wx.navigateTo({
        url: '/pages/birthdayappointment/birthdayappointment?title=生日/团体预约&type=3',
      })
    }
  },
})
